step by step find the inverse of a function with x in numerator